package useTool;

import java.util.Scanner;

import Tool.Client;
import Tool.Linda;


public class MainConnectServer 
{
	public static void main(String[] args) 
	{
		Client a=new Client();
		Object[] rows=(Object[])a.in("row-3*3");
		Object[] columns = (Object[])a.in("column-3*3");
		System.out.print(rows.length);
		if(rows.length == columns.length)
		{
			float sum = 0;
			float[][] result = new float[3][3];
			float[] rows_rows;
			float[] columns_columns;
			for(int i=0;i<rows.length;i++)
			{		
				System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
				rows_rows = (float[])rows[i];
				for(int k=0;k<columns.length;k++)
				{
					columns_columns = (float[])columns[k];
					for(int p=0;p<columns_columns.length;p++)
					{
						sum +=rows_rows[p]*columns_columns[p];
					}
					result[i][k] = sum;
					sum=0;
				}
			}
			a.out("result", new Object[]{result});
		}
		else
		{
			float[] result = new float[0];
			a.out("result",new Object[0]);
		}
	}
}	

